package sso.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ResoureController {


    @PreAuthorize("hasAuthority('sys:res:create')")
    @RequestMapping("/docreate")
    public String doCreate(){

        return "create resource ok";
    }
    @PreAuthorize("hasAuthority('sys:res:create')")
    @RequestMapping("/doupdate")
    public String doUpdata(){

        return "uodate resource ok";
    }
    @PreAuthorize("hasAuthority('sys:res:create')")
    @RequestMapping("/dodelete")
    public String dodelete(){

        return "delete resource ok";
    }



}
